########################### Ultimate image ############################
#FROM registry.cn-hangzhou.aliyuncs.com/jinquan711/redhat-ubi:8.5-full
FROM registry.cn-hangzhou.aliyuncs.com/jinquan711/alpine:3.16-jq-build19

##-> image's description & author
MAINTAINER jinquan jinquan7@foxmail.com
LABEL Description="An heng WAF exporter, Routine configuration file is /app/config.yaml "

##-> copy executable objects to target image
COPY ./ahwaf-exporter /app/ahwaf-exporter
COPY ./config.yaml /app/config.yaml

##-> copy app's other files to target image
COPY ./cicd/version /app/

COPY ./cicd/entrypoint.sh /usr/sbin/entrypoint.sh

EXPOSE 22
EXPOSE 1323

#VOLUME [ "/app/log" ]

ENTRYPOINT ["/bin/sh","/usr/sbin/entrypoint.sh"]
